package conversion;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ConvertDateToMySqlDate {

	private void convertDateToMySql(){
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
		@SuppressWarnings("deprecation")
		java.util.Date enddate = new java.util.Date("20/03/2013");
		java.sql.Date sqlDate = java.sql.Date.valueOf(simpleDateFormat.format(enddate));
	}
	public static void main(String[] args) {
		ConvertDateToMySqlDate date = new ConvertDateToMySqlDate();
		date.convertDateToMySql();
	}

}
